//
// Created by liangzhenying on 16/2/17.
// Copyright (c) 2016 LiangZhenYing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YLImageModel.h"

@class YLBannerView;
@protocol YLBannerViewDelegate <NSObject>
@optional
- (void)bannerView:(YLBannerView *)view didClickPage:(NSInteger)index;
@end

@interface YLBannerView : UIView

@property (nonatomic,weak) id<YLBannerViewDelegate>delegate;
@property (nonatomic,strong)NSArray<YLImageModel*> *dataArray;

- (void)stopAnimation;

- (void)startAnimation;

@end
